package com.heima.feign.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmBaiduToken;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("leadnews-wemedia")
public interface IWemediaClient {

    @GetMapping("/api/v1/channel/list")
    public ResponseResult getChannels();

    /**
     * @Description:   查询baidu_token
     * @Date 2023/6/28 17:51
     * @Author  朱传洋
     */
    @GetMapping("/api/v1/baidu_token")
    public WmBaiduToken getToken();

    /**
     * @Description:     查询敏感词集合
     * @Date 2023/6/28 17:53
     * @Author  朱传洋
     */
    @GetMapping("api/v1/sensitive/list")
    public List<WmSensitive> list();
}